#!/usr/bin/env node

let timer1 = setInterval(() => {
    console.log('Timer1 运行...');
  }, 500);
  
  setTimeout(() => {
    clearInterval(timer1);
    console.log('Timer1 结束，启动 Timer2');
  
    let count = 0;
    let timer2 = setInterval(() => {
      count++;
      console.log(`Timer2 运行... (${count}/5)`);
      
      if (count === 5) {
        clearInterval(timer2);
        console.log('Timer2 结束');
      }
    }, 500);
  }, 5000);